<script setup>
import { ref } from 'vue'
const count = ref(0);

const add = () => {
  count.value++;
}
</script>

<template>
  <div>
    这是父组件页面
    <div>count=== {{ count }}</div>
    <button type="button" @click="add">点击</button>
  </div>
</template>